﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Agr.CQRS.Infrastructure.Commands;
using Agr.CQRS.ViewModel;

namespace Agr.Questionnaire.Frontend.Mvc
{
    public class AgrQnnaireController : Controller
    {
        protected ViewModelQueryFactory QueryFactory
        {
            get
            {
                return HttpContext.Items["ViewModelQueryFactory"] as ViewModelQueryFactory;
            }
        }

        protected CommandIssuer CommandIssuer
        {
            get
            {
                return MvcApplication.DomainModel.CommandIssuer;
            }
        }
    }
}
